Skip to content

Conversation

@academo
Copy link
Collaborator

@academo academo commented Feb 5, 2026

  • Fetch remote tags on shallow clone to be able to switch refs
  • Fetch remote ref to be able to switch branches and tags
  • Fallback into gemini-cli for commit finding

@academo academo requested review from a team as code owners February 5, 2026 12:03
@academo academo self-assigned this Feb 5, 2026
@academo academo moved this from 📬 Triage to 🔬 In review in Grafana Catalog Team Feb 5, 2026
@@ -0,0 +1,53 @@
// Package main provides a manual test harness for versioncommitfinder.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this file exist to test the gemini prompt locally. I am leaving it here for future development.

the file itself is never imported or built in the validator.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file looks quite easy to regenerate. Do you really need it? IMO it would polute the repo

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's a fair point. I'll remove it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you accidentally re-added it

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes! I was testing the recent changes. I'll remove it before I ask for another round of reviews

ctx,
"gemini",
"-m",
"gemini-2.5-flash",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

llmClient, err := llmvalidate.New(context.Background(), geminiKey, "gemini-3-flash-preview")

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gemini 3 flash performed worst in my tests over 2.5 and it was much slower. that's why I kept 2.5 flash. we should keep an eye when it becomes deprecated.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe add a comment explaining that?

@academo academo requested a review from tolzhabayev February 5, 2026 14:21
@academo academo changed the title commit finder: improve versionn commit finder for codediff tool commit finder: improve version commit finder for codediff tool Feb 5, 2026
@@ -0,0 +1,53 @@
// Package main provides a manual test harness for versioncommitfinder.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file looks quite easy to regenerate. Do you really need it? IMO it would polute the repo

ctx,
"gemini",
"-m",
"gemini-2.5-flash",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe add a comment explaining that?

Copy link
Contributor

@andresmgot andresmgot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, a couple of nits

Comment on lines +245 to +248
client := llmclient.NewGeminiClient()
if err := client.CanUseLLM(); err != nil {
return "", fmt.Errorf("cannot use LLM: %w", err)
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Usually you do this kind of checks before calling the function

@academo academo merged commit 357db5b into main Feb 10, 2026
7 checks passed
@academo academo deleted the academo/improve-version-commit-finder branch February 10, 2026 10:16
@github-project-automation github-project-automation bot moved this from 🔬 In review to 🚀 Shipped in Grafana Catalog Team Feb 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🚀 Shipped

Development

Successfully merging this pull request may close these issues.

3 participants